import request from '@/utils/request'

//发布教师热点
export function getPub(params){
  return request({
    url: '/mgrService/mgrMiniProgram/createHotNews',
    method: 'post',
    data: params
  })
}

//分页查询教师热点
export function getPage(params) {
  return request({
    url: '/mgrService/mgrMiniProgram/queryHotNewsByPage',
    method: 'post',
    data: params
  })
}

//通过id软删除教师热点
export function getDel(id){
  return request({
    url: `/mgrService/mgrMiniProgram/deleteHotNewsById/${id}`,
    method: 'get',
    data: [id]
  })
}

//通过id查询教师热点详情
export function getInfo(id){
  return request({
    url: `/mgrService/mgrMiniProgram/queryHotNewsById/${id}`,
    method: 'get',
    data: [id]
  })
}

//通过id修改指定教师热点
export function getMod(params){
  return request({
    url: '/mgrService/mgrMiniProgram/updateHotNewsById',
    method: 'post',
    data: params
  })
}
